!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[MatrixGallery_MatrixGalleryDefaultSkin]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[MatrixGallery_MatrixGalleryDefaultSkin]"]=t(require("react")):e["rb_wixui.thunderbolt[MatrixGallery_MatrixGalleryDefaultSkin]"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={96114:function(e,t,i){var a;!function(t){"use strict";var r=function(){},n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function o(){var e=this;e.reads=[],e.writes=[],e.raf=n.bind(t),r("initialized",e)}function s(e){e.scheduled||(e.scheduled=!0,e.raf(c.bind(null,e)),r("flush scheduled"))}function c(e){r("flush");var t,i=e.writes,a=e.reads;try{r("flushing reads",a.length),e.runTasks(a),r("flushing writes",i.length),e.runTasks(i)}catch(e){t=e}if(e.scheduled=!1,(a.length||i.length)&&s(e),t){if(r("task errored",t.message),!e.catch)throw t;e.catch(t)}}function l(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}o.prototype={constructor:o,runTasks:function(e){var t;for(r("run tasks");t=e.shift();)t()},measure:function(e,t){r("measure");var i=t?e.bind(t):e;return this.reads.push(i),s(this),i},mutate:function(e,t){r("mutate");var i=t?e.bind(t):e;return this.writes.push(i),s(this),i},clear:function(e){return r("clear",e),l(this.reads,e)||l(this.writes,e)},extend:function(e){if(r("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var u=t.fastdom=t.fastdom||new o;void 0===(a=function(){return u}.call(u,i,u,e))||(e.exports=a)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},5329:function(t){"use strict";t.exports=e},93213:function(e,t,i){var a=i(96174);e.exports=function(e,t,i){return(t=a(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=[];return e&&i.push(`${c}${e}`),t.forEach((e=>{e&&(i.push(`${c}${e}`),i.push(e))})),i.join(" ")},u=e=>Object.entries(e).reduce(((e,[t,i])=>(t.includes("data-")&&(e[t]=i),e)),{});var h={root:"gallery",galleryItem:"gallery__item"};const d="matrix-gallery-items-container",m="matrix-gallery-show-more-button",g=()=>{};var p=e=>{const{id:t,items:a,rows:r,columns:o,extraRows:c,showMoreLabel:p,imageOnClickAction:f,className:_,customClassNames:T=[],openImageZoom:I=g,skinsStyle:E,skinsItemStyle:L,translations:b,MatrixGalleryItemComponent:y,isFitMode:A,onItemClicked:w,onMouseEnter:M,onMouseLeave:O,numberOfExtraRows:R=0,setNumberOfExtraRows:G,itemToFocusIndex:C=-1,setItemToFocusIndex:S,getPlaceholder:x}=e,F=r*o,k=Math.min(F+R*o,a.length),v="columns-"+o,N=a.slice(0,k).map(((e,a)=>{return e.image.getPlaceholder=x,n.createElement(y,i()({key:"item-"+a,extraClassNames:{root:s(E.item,l(h.galleryItem))},skinsStyle:L,imageOnClickAction:f,openImageZoom:e=>I(e,t),itemClickHandler:()=>{null==w||w({itemIndex:a,type:"itemClicked"})},translations:b,isFocused:a===C,isFitMode:A,itemId:(r=a,o=t,"item-"+r+"-"+o)},e));var r,o})),P=n.useCallback((()=>{S(k),G(R+c)}),[R,c,G,S,k]),H=k","|","\u201c",":",'"'].map(encodeURIComponent),Q=["\\.","\\*"],X="_";function ee(e){return function(e){return D.includes(te(e))}(e)?B.JPG:V(e)?B.PNG:W(e)?B.WEBP:q(e)?B.GIF:J(e)?B.AVIF:B.UNRECOGNIZED}function te(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function ie(e,t,i,a,r){let n;return n=r===w.FILL?function(e,t,i,a){return Math.max(i/e,a/t)}(e,t,i,a):r===w.FIT?function(e,t,i,a){return Math.min(i/e,a/t)}(e,t,i,a):1,n}function ae(e,t,i,a,r,n){e=e||a.width,t=t||a.height;const{scaleFactor:o,width:s,height:c}=function(e,t,i,a,r){let n,o=i,s=a;if(n=ie(e,t,i,a,r),r===w.FIT&&(o=e*n,s=t*n),o&&s&&o*s>k){const i=Math.sqrt(k/(o*s));o*=i,s*=i,n=ie(e,t,o,s,r)}return{scaleFactor:n,width:o,height:s}}(e,t,a.width*r,a.height*r,i);return function(e,t,i,a,r,n,o){const{optimizedScaleFactor:s,upscaleMethodValue:c,forceUSM:l}=function(e,t,i,a){if("auto"===a)return function(e,t){const i=se(e,t);return{optimizedScaleFactor:N[i].maxUpscale,upscaleMethodValue:S.classic,forceUSM:!1}}(e,t);if("super"===a)return function(e){return{optimizedScaleFactor:z(v),upscaleMethodValue:S.super,forceUSM:!(v.includes(e)||e>z(v))}}(i);return function(e,t){const i=se(e,t);return{optimizedScaleFactor:N[i].maxUpscale,upscaleMethodValue:S.classic,forceUSM:!1}}(e,t)}(e,t,n,r);let u=i,h=a;if(n<=s)return{width:u,height:h,scaleFactor:n,upscaleMethodValue:c,forceUSM:l,cssUpscaleNeeded:!1};switch(o){case w.FILL:u=i*(s/n),h=a*(s/n);break;case w.FIT:u=e*s,h=t*s}return{width:u,height:h,scaleFactor:s,upscaleMethodValue:c,forceUSM:l,cssUpscaleNeeded:!0}}(e,t,s,c,n,o,i)}function re(e,t,i,a){const r=oe(i)||function(e=M.CENTER){return O[e]}(a);return{x:Math.max(0,Math.min(e.width-t.width,r.x*e.width-t.width/2)),y:Math.max(0,Math.min(e.height-t.height,r.y*e.height-t.height/2)),width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}}function ne(e){return e.alignment&&R[e.alignment]||R[M.CENTER]}function oe(e){let t;return!e||"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:ce(Math.max(0,Math.min(100,e.x))/100,2),y:ce(Math.max(0,Math.min(100,e.y))/100,2)}),t}function se(e,t){const i=e*t;return i>N[P.HIGH].size?P.HIGH:i>N[P.MEDIUM].size?P.MEDIUM:i>N[P.LOW].size?P.LOW:P.TINY}function ce(e,t){const i=Math.pow(10,t||0);return(e*i/i).toFixed(t)}function le(e){return e&&e.upscaleMethod&&C[e.upscaleMethod.toUpperCase()]||C.AUTO}function ue(e,t){const i=W(e)||J(e);return te(e)===B.GIF||i&&t}const he={isMobile:!1},de=function(e){return he[e]};function me(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e=t&&i,he["isMobile"]=e}var e}function ge(e,t){const i={css:{container:{}}},{css:a}=i,{fittingType:r}=e;switch(r){case A.ORIGINAL_SIZE:case A.LEGACY_ORIGINAL_SIZE:case A.LEGACY_STRIP_ORIGINAL_SIZE:a.container.backgroundSize="auto",a.container.backgroundRepeat="no-repeat";break;case A.SCALE_TO_FIT:case A.LEGACY_STRIP_SCALE_TO_FIT:a.container.backgroundSize="contain",a.container.backgroundRepeat="no-repeat";break;case A.STRETCH:a.container.backgroundSize="100% 100%",a.container.backgroundRepeat="no-repeat";break;case A.SCALE_TO_FILL:case A.LEGACY_STRIP_SCALE_TO_FILL:a.container.backgroundSize="cover",a.container.backgroundRepeat="no-repeat";break;case A.TILE_HORIZONTAL:case A.LEGACY_STRIP_TILE_HORIZONTAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-x";break;case A.TILE_VERTICAL:case A.LEGACY_STRIP_TILE_VERTICAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-y";break;case A.TILE:case A.LEGACY_STRIP_TILE:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat";break;case A.LEGACY_STRIP_FIT_AND_TILE:a.container.backgroundSize="contain",a.container.backgroundRepeat="repeat";break;case A.FIT_AND_TILE:case A.LEGACY_BG_FIT_AND_TILE:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat";break;case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-x";break;case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-y";break;case A.LEGACY_BG_NORMAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="no-repeat"}switch(t.alignment){case M.CENTER:a.container.backgroundPosition="center center";break;case M.LEFT:a.container.backgroundPosition="left center";break;case M.RIGHT:a.container.backgroundPosition="right center";break;case M.TOP:a.container.backgroundPosition="center top";break;case M.BOTTOM:a.container.backgroundPosition="center bottom";break;case M.TOP_RIGHT:a.container.backgroundPosition="right top";break;case M.TOP_LEFT:a.container.backgroundPosition="left top";break;case M.BOTTOM_RIGHT:a.container.backgroundPosition="right bottom";break;case M.BOTTOM_LEFT:a.container.backgroundPosition="left bottom"}return i}const pe={[M.CENTER]:"center",[M.TOP]:"top",[M.TOP_LEFT]:"top left",[M.TOP_RIGHT]:"top right",[M.BOTTOM]:"bottom",[M.BOTTOM_LEFT]:"bottom left",[M.BOTTOM_RIGHT]:"bottom right",[M.LEFT]:"left",[M.RIGHT]:"right"},fe={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function _e(e,t){const i={css:{container:{},img:{}}},{css:a}=i,{fittingType:r}=e,n=t.alignment;switch(a.container.position="relative",r){case A.ORIGINAL_SIZE:case A.LEGACY_ORIGINAL_SIZE:e.parts&&e.parts.length?(a.img.width=e.parts[0].width,a.img.height=e.parts[0].height):(a.img.width=e.src.width,a.img.height=e.src.height);break;case A.SCALE_TO_FIT:case A.LEGACY_FIT_WIDTH:case A.LEGACY_FIT_HEIGHT:case A.LEGACY_FULL:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="contain",a.img.objectPosition=pe[n]||"unset";break;case A.LEGACY_BG_NORMAL:a.img.width="100%",a.img.height="100%",a.img.objectFit="none",a.img.objectPosition=pe[n]||"unset";break;case A.STRETCH:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="fill";break;case A.SCALE_TO_FILL:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="cover"}if("number"==typeof a.img.width&&"number"==typeof a.img.height&&(a.img.width!==t.width||a.img.height!==t.height)){const e=Math.round((t.height-a.img.height)/2),i=Math.round((t.width-a.img.width)/2);Object.assign(a.img,fe,function(e,t,i){return{[M.TOP_LEFT]:{top:0,left:0},[M.TOP_RIGHT]:{top:0,right:0},[M.TOP]:{top:0,left:t},[M.BOTTOM_LEFT]:{bottom:0,left:0},[M.BOTTOM_RIGHT]:{bottom:0,right:0},[M.BOTTOM]:{bottom:0,left:t},[M.RIGHT]:{top:e,right:0},[M.LEFT]:{top:e,left:0},[M.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(e,i,t)[n])}return i}function Te(e,t){const i={css:{container:{}},attr:{container:{},img:{}}},{css:a,attr:r}=i,{fittingType:n}=e,o=t.alignment,{width:s,height:c}=e.src;let l;switch(a.container.position="relative",n){case A.ORIGINAL_SIZE:case A.LEGACY_ORIGINAL_SIZE:case A.TILE:e.parts&&e.parts.length?(r.img.width=e.parts[0].width,r.img.height=e.parts[0].height):(r.img.width=s,r.img.height=c),r.img.preserveAspectRatio="xMidYMid slice";break;case A.SCALE_TO_FIT:case A.LEGACY_FIT_WIDTH:case A.LEGACY_FIT_HEIGHT:case A.LEGACY_FULL:r.img.width="100%",r.img.height="100%",r.img.transform="",r.img.preserveAspectRatio="";break;case A.STRETCH:r.img.width=t.width,r.img.height=t.height,r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="none";break;case A.SCALE_TO_FILL:Z(e.src.id)?(r.img.width=t.width,r.img.height=t.height):(l=function(e,t,i,a,r){const n=ie(e,t,i,a,r);return{width:Math.round(e*n),height:Math.round(t*n)}}(s,c,t.width,t.height,w.FILL),r.img.width=l.width,r.img.height=l.height),r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==t.width||r.img.height!==t.height)){let e,i,a=0,s=0;n===A.TILE?(e=t.width%r.img.width,i=t.height%r.img.height):(e=t.width-r.img.width,i=t.height-r.img.height);const c=Math.round(e/2),l=Math.round(i/2);switch(o){case M.TOP_LEFT:a=0,s=0;break;case M.TOP:a=c,s=0;break;case M.TOP_RIGHT:a=e,s=0;break;case M.LEFT:a=0,s=l;break;case M.CENTER:a=c,s=l;break;case M.RIGHT:a=e,s=l;break;case M.BOTTOM_LEFT:a=0,s=i;break;case M.BOTTOM:a=c,s=i;break;case M.BOTTOM_RIGHT:a=e,s=i}r.img.x=a,r.img.y=s}return r.container.width=t.width,r.container.height=t.height,r.container.viewBox=[0,0,t.width,t.height].join(" "),i}function Ie(e,t,i){let a;switch(t.crop&&(a=function(e,t){const i=Math.max(0,Math.min(e.width,t.x+t.width)-Math.max(0,t.x)),a=Math.max(0,Math.min(e.height,t.y+t.height)-Math.max(0,t.y));return i&&a&&(e.width!==i||e.height!==a)?{x:Math.max(0,t.x),y:Math.max(0,t.y),width:i,height:a}:null}(t,t.crop),a&&(e.src.width=a.width,e.src.height=a.height,e.src.isCropped=!0,e.parts.push(Le(a)))),e.fittingType){case A.SCALE_TO_FIT:case A.LEGACY_FIT_WIDTH:case A.LEGACY_FIT_HEIGHT:case A.LEGACY_FULL:case A.FIT_AND_TILE:case A.LEGACY_BG_FIT_AND_TILE:case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:case A.LEGACY_BG_NORMAL:e.parts.push(Ee(e,i));break;case A.SCALE_TO_FILL:e.parts.push(function(e,t){const i=ae(e.src.width,e.src.height,w.FILL,t,e.devicePixelRatio,e.upscaleMethod),a=oe(e.focalPoint);return{transformType:a?w.FILL_FOCAL:w.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:ne(t),focalPointX:a&&a.x,focalPointY:a&&a.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(e,i));break;case A.STRETCH:e.parts.push(function(e,t){const i=ie(e.src.width,e.src.height,t.width,t.height,w.FILL),a={...t};return a.width=e.src.width*i,a.height=e.src.height*i,Ee(e,a)}(e,i));break;case A.TILE_HORIZONTAL:case A.TILE_VERTICAL:case A.TILE:case A.LEGACY_ORIGINAL_SIZE:case A.ORIGINAL_SIZE:a=re(e.src,i,e.focalPoint,i.alignment),e.src.isCropped?(Object.assign(e.parts[0],a),e.src.width=a.width,e.src.height=a.height):e.parts.push(Le(a));break;case A.LEGACY_STRIP_TILE_HORIZONTAL:case A.LEGACY_STRIP_TILE_VERTICAL:case A.LEGACY_STRIP_TILE:case A.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:w.LEGACY_CROP,width:Math.round(e.width),height:Math.round(e.height),alignment:ne(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case A.LEGACY_STRIP_SCALE_TO_FIT:case A.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:w.FIT,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case A.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:w.LEGACY_FILL,width:Math.round(e.width),height:Math.round(e.height),alignment:ne(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function Ee(e,t){const i=ae(e.src.width,e.src.height,w.FIT,t,e.devicePixelRatio,e.upscaleMethod);return{transformType:!e.src.width||!e.src.height?w.FIT:w.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:R.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function Le(e){return{transformType:w.CROP,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function be(e,t){t=t||{},e.quality=function(e,t){const i=e.fileType===B.PNG,a=e.fileType===B.JPG,r=e.fileType===B.WEBP,n=e.fileType===B.AVIF,o=a||i||r||n;if(o){const a=z(e.parts),r=(s=a.width,c=a.height,N[se(s,c)].quality);let n=t.quality&&t.quality>=5&&t.quality<=90?t.quality:r;return n=i?n+5:n,n}var s,c;return 0}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.autoEncode=t.autoEncode??!0,e.encoding=t?.encoding,e.unsharpMask=function(e,t){if(function(e){const t="number"==typeof(e=e||{}).radius&&!isNaN(e.radius)&&e.radius>=.1&&e.radius<=500,i="number"==typeof e.amount&&!isNaN(e.amount)&&e.amount>=0&&e.amount<=10,a="number"==typeof e.threshold&&!isNaN(e.threshold)&&e.threshold>=0&&e.threshold<=255;return t&&i&&a}(t.unsharpMask))return{radius:ce(t.unsharpMask?.radius,2),amount:ce(t.unsharpMask?.amount,2),threshold:ce(t.unsharpMask?.threshold,2)};if(("number"!=typeof(i=(i=t.unsharpMask)||{}).radius||isNaN(i.radius)||0!==i.radius||"number"!=typeof i.amount||isNaN(i.amount)||0!==i.amount||"number"!=typeof i.threshold||isNaN(i.threshold)||0!==i.threshold)&&function(e){const t=z(e.parts);return!(t.scaleFactor>=1)||t.forceUSM||t.transformType===w.FIT}(e))return x;var i;return}(e,t),e.filters=function(e){const t=e.filters||{},i={};ye(t[H.CONTRAST],-100,100)&&(i[H.CONTRAST]=t[H.CONTRAST]);ye(t[H.BRIGHTNESS],-100,100)&&(i[H.BRIGHTNESS]=t[H.BRIGHTNESS]);ye(t[H.SATURATION],-100,100)&&(i[H.SATURATION]=t[H.SATURATION]);ye(t[H.HUE],-180,180)&&(i[H.HUE]=t[H.HUE]);ye(t[H.BLUR],0,100)&&(i[H.BLUR]=t[H.BLUR]);return i}(t)}function ye(e,t,i){return"number"==typeof e&&!isNaN(e)&&0!==e&&e>=t&&e<=i}function Ae(e,t,i,a){const r=function(e){return e?.isSEOBot??!1}(a),n=ee(t.id),o=function(e,t){const i=/\.([^.]*)$/,a=new RegExp(`(${K.concat(Q).join("|")})`,"g");if(t&&t.length){let e=t;const r=t.match(i);return r&&$.includes(r[1])&&(e=t.replace(i,"")),encodeURIComponent(e).replace(a,X)}const r=e.match(/\/(.*?)$/);return(r?r[1]:e).replace(i,"")}(t.id,t.name),s=r?1:function(e){return Math.min(e.pixelAspectRatio||1,I)}(i),c=te(t.id),l=c,u=Z(t.id,a?.hasAnimation,a?.allowAnimatedTransform),h={fileName:o,fileExtension:c,fileType:n,fittingType:e,preferredExtension:l,src:{id:t.id,width:t.width,height:t.height,isCropped:!1,isAnimated:ue(t.id,a?.hasAnimation)},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],devicePixelRatio:s,quality:0,upscaleMethod:le(a),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:u};return u&&(Ie(h,t,i),be(h,a)),h}function we(e,t,i){const a={...i},r=de("isMobile");switch(e){case A.LEGACY_BG_FIT_AND_TILE:case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:case A.LEGACY_BG_NORMAL:const e=r?b:E,i=r?y:L;a.width=Math.min(e,t.width),a.height=Math.min(i,Math.round(a.width/(t.width/t.height))),a.pixelAspectRatio=1}return a}const Me=U`fit/w_${"width"},h_${"height"}`,Oe=U`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Re=U`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,Ge=U`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,Ce=U`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Se=U`fill/w_${"width"},h_${"height"},al_${"alignment"}`,xe=U`,lg_${"upscaleMethodValue"}`,Fe=U`,q_${"quality"}`,ke=U`,quality_auto`,ve=U`,usm_${"radius"}_${"amount"}_${"threshold"}`,Ne=U`,bl`,Pe=U`,wm_${"watermark"}`,He={[H.CONTRAST]:U`,con_${"contrast"}`,[H.BRIGHTNESS]:U`,br_${"brightness"}`,[H.SATURATION]:U`,sat_${"saturation"}`,[H.HUE]:U`,hue_${"hue"}`,[H.BLUR]:U`,blur_${"blur"}`},Be=U`,enc_auto`,Ye=U`,enc_avif`,Ue=U`,enc_pavif`,ze=U`,pstr`;function $e(e,t,i,a={},r){if(Z(t.id,a?.hasAnimation,a?.allowAnimatedTransform)){if(W(t.id)||J(t.id)){const{alignment:n,...o}=i;t.focalPoint={x:void 0,y:void 0},delete t?.crop,r=Ae(e,t,o,a)}else r=r||Ae(e,t,i,a);return function(e){const t=[];e.parts.forEach((e=>{switch(e.transformType){case w.CROP:t.push(Ge(e));break;case w.LEGACY_CROP:t.push(Ce(e));break;case w.LEGACY_FILL:let i=Se(e);e.upscale&&(i+=xe(e)),t.push(i);break;case w.FIT:let a=Me(e);e.upscale&&(a+=xe(e)),t.push(a);break;case w.FILL:let r=Oe(e);e.upscale&&(r+=xe(e)),t.push(r);break;case w.FILL_FOCAL:let n=Re(e);e.upscale&&(n+=xe(e)),t.push(n)}}));let i=t.join("/");return e.quality&&(i+=Fe(e)),e.unsharpMask&&(i+=ve(e.unsharpMask)),e.progressive||(i+=Ne(e)),e.watermark&&(i+=Pe(e)),e.filters&&(i+=Object.keys(e.filters).map((t=>He[t](e.filters))).join("")),e.fileType!==B.GIF&&(e.encoding===Y.AVIF?(i+=Ye(e),i+=ke(e)):e.encoding===Y.PAVIF?(i+=Ue(e),i+=ke(e)):e.autoEncode&&(i+=Be(e))),e.src?.isAnimated&&e.transformed&&(i+=ze(e)),`${e.src.id}/${T}/${i}/${e.fileName}.${e.preferredExtension}`}(r)}return t.id}const De={[M.CENTER]:"50% 50%",[M.TOP_LEFT]:"0% 0%",[M.TOP_RIGHT]:"100% 0%",[M.TOP]:"50% 0%",[M.BOTTOM_LEFT]:"0% 100%",[M.BOTTOM_RIGHT]:"100% 100%",[M.BOTTOM]:"50% 100%",[M.RIGHT]:"100% 50%",[M.LEFT]:"0% 50%"},je=Object.entries(De).reduce(((e,[t,i])=>(e[i]=t,e)),{}),Ze=[A.TILE,A.TILE_HORIZONTAL,A.TILE_VERTICAL,A.LEGACY_BG_FIT_AND_TILE,A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,A.LEGACY_BG_FIT_AND_TILE_VERTICAL],Ve=[A.LEGACY_ORIGINAL_SIZE,A.ORIGINAL_SIZE,A.LEGACY_BG_NORMAL];function We(e,t,{width:i,height:a}){return e===A.TILE&&t.width>i&&t.height>a}function qe(e,{width:t,height:i}){if(!t||!i){const a=t||Math.min(980,e.width),r=a/e.width;return{width:a,height:i||e.height*r}}return{width:t,height:i}}function Je(e,t,i,a="center"){const r={img:{},container:{}};if(e===A.SCALE_TO_FILL){const e=t.focalPoint&&function(e){const t=`${e.x}% ${e.y}%`;return je[t]||""}(t.focalPoint),n=e||a;t.focalPoint&&!e?r.img={objectPosition:Ke(t,i,t.focalPoint)}:r.img={objectPosition:De[n]}}else[A.LEGACY_ORIGINAL_SIZE,A.ORIGINAL_SIZE].includes(e)?r.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:Ze.includes(e)&&(r.container={backgroundSize:`${t.width}px ${t.height}px`});return r}function Ke(e,t,i){const{width:a,height:r}=e,{width:n,height:o}=t,{x:s,y:c}=i;if(!n||!o)return`${s}% ${c}%`;const l=Math.max(n/a,o/r),u=a*l,h=r*l,d=Math.max(0,Math.min(u-n,u*(s/100)-n/2)),m=Math.max(0,Math.min(h-o,h*(c/100)-o/2));return`${d&&Math.floor(d/(u-n)*100)}% ${m&&Math.floor(m/(h-o)*100)}%`}const Qe={width:"100%",height:"100%"};function Xe(e,t,i,a={}){const{autoEncode:r=!0,isSEOBot:n,shouldLoadHQImage:o,hasAnimation:s,allowAnimatedTransform:c,encoding:l}=a;if(!j(e,t,i))return F;const u=void 0===c||c,h=Z(t.id,s,u);if(!h||o)return et(e,t,i,{...a,autoEncode:r,useSrcset:h});const d={...i,...qe(t,i)},{alignment:m,htmlTag:g}=d,p=We(e,t,d),f=function(e,t,{width:i,height:a},r=!1){if(r)return{width:i,height:a};const n=!Ve.includes(e),o=We(e,t,{width:i,height:a}),s=!o&&Ze.includes(e),c=s?t.width:i,l=s?t.height:a,u=n?function(e,t){return e>900?t?.05:.15:e>500?t?.1:.18:e>200?.25:1}(c,V(t.id)):1;return{width:o?1920:c*u,height:l*u}}(e,t,d,n),_=function(e,t,i){return i?0:Ze.includes(t)?1:e>200?2:3}(d.width,e,n),T=function(e,t){const i=Ze.includes(e)&&!t;return e===A.SCALE_TO_FILL||i?A.SCALE_TO_FIT:e}(e,p),I=Je(e,t,i,m),{uri:E}=et(T,t,{...f,alignment:m,htmlTag:g},{autoEncode:r,filters:_?{blur:_}:{},hasAnimation:s,allowAnimatedTransform:u,encoding:l}),{attr:L={},css:b}=et(e,t,{...d,alignment:m,htmlTag:g},{});return b.img=b.img||{},b.container=b.container||{},Object.assign(b.img,I.img,Qe),Object.assign(b.container,I.container),{uri:E,css:b,attr:L,transformed:!0}}function et(e,t,i,a){let r={};if(j(e,t,i)){const n=we(e,t,i),o=Ae(e,t,n,a);r.uri=$e(e,t,n,a,o),a?.useSrcset&&(r.srcset=function(e,t,i,a,r){const n=i.pixelAspectRatio||1;return{dpr:[`${1===n?r.uri:$e(e,t,{...i,pixelAspectRatio:1},a)} 1x`,`${2===n?r.uri:$e(e,t,{...i,pixelAspectRatio:2},a)} 2x`]}}(e,t,n,a,r)),Object.assign(r,function(e,t){let i;return i=t.htmlTag===G.BG?ge:t.htmlTag===G.SVG?Te:_e,i(e,t)}(o,n),{transformed:o.transformed})}else r=F;return r}const tt="https://static.wixstatic.com/media/";"undefined"!=typeof window&&window.devicePixelRatio;me();me();const it=tt,{STATIC_MEDIA_URL:at}=e,rt=({fittingType:e,src:t,target:i,options:a})=>{const r=Xe(e,t,i,{...a,autoEncode:!0});return r?.uri&&!/^[a-z]+:/.test(r.uri)&&(r.uri=`${at}${r.uri}`),r},nt=/^[a-z]+:/,ot=e=>{const{id:t,containerId:i,uri:a,alt:r,name:o="",role:s,width:c,height:l,displayMode:u,devicePixelRatio:h,quality:d,alignType:m,bgEffectName:g="",focalPoint:p,upscaleMethod:f,className:T="",crop:I,imageStyles:E={},targetWidth:L,targetHeight:b,targetScale:y,onLoad:A=()=>{},onError:w=()=>{},shouldUseLQIP:M,containerWidth:O,containerHeight:R,getPlaceholder:G,isInFirstFold:C,placeholderTransition:S,socialAttrs:x,isSEOBot:F,skipMeasure:k,hasAnimation:v,encoding:N}=e,P=n.useRef(null);let H="";const B="blur"===S,Y=n.useRef(null);if(!Y.current)if(G||M||C||F){const e={upscaleMethod:f,...d||{},shouldLoadHQImage:C,isSEOBot:F,hasAnimation:v,encoding:N};Y.current=(G||rt)({fittingType:u,src:{id:a,width:c,height:l,crop:I,name:o,focalPoint:p},target:{width:O,height:R,alignment:m,htmlTag:"img"},options:e}),H=!Y.current.transformed||C||F?"":"true"}else Y.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const U=!F&&(G||M)&&!C&&Y.current.transformed,z=n.useMemo((()=>JSON.stringify({containerId:i,...i&&{containerId:i},...m&&{alignType:m},...k&&{skipMeasure:!0},displayMode:u,...O&&{targetWidth:O},...R&&{targetHeight:R},...L&&{targetWidth:L},...b&&{targetHeight:b},...y&&{targetScale:y},isLQIP:U,isSEOBot:F,lqipTransition:S,encoding:N,imageData:{width:c,height:l,uri:a,name:o,displayMode:u,hasAnimation:v,...d&&{quality:d},...h&&{devicePixelRatio:h},...p&&{focalPoint:p},...I&&{crop:I},...f&&{upscaleMethod:f}}})),[i,m,k,u,O,R,L,b,y,U,F,S,N,c,l,a,o,v,d,h,p,I,f]),$=Y.current,D=$?.uri,j=$?.srcset,Z=$.css?.img,V=`${_} ${T}`;n.useEffect((()=>{const e=P.current;A&&e?.currentSrc&&e?.complete&&A({target:e})}),[]);const W=$&&!$?.transformed?`max(${c}px, 100%)`:L?`${L}px`:null;return n.createElement("wow-image",{id:t,class:V,"data-image-info":z,"data-motion-part":`BG_IMG ${i}`,"data-bg-effect-name":g,"data-has-ssr-src":H,"data-animate-blur":!F&&U&&B?"":void 0,style:W?{"--wix-img-max-width":W}:{}},n.createElement("img",{src:D,ref:P,alt:r||"",role:s,style:{...Z,...E},onLoad:A,onError:w,width:O||void 0,height:R||void 0,...x,srcSet:C?j?.dpr?.map((e=>nt.test(e)?e:`${at}${e}`)).join(", "):void 0,fetchpriority:C?"high":void 0,loading:!1===C?"lazy":void 0,suppressHydrationWarning:!0}))};var st="Tj01hh";var ct=e=>{var t,a;const{id:r,alt:o,role:c,className:l,imageStyles:u={},targetWidth:h,targetHeight:d,onLoad:m,onError:g,containerWidth:p,containerHeight:f,isInFirstFold:_,socialAttrs:T,skipMeasure:I,responsiveImageProps:E,zoomedImageResponsiveOverride:L,displayMode:b}=e,y=h||p,A=d||f,{fallbackSrc:w,srcset:M,sources:O,css:R}=E||{},{width:G,height:C,...S}=(null==E||null==(t=E.css)?void 0:t.img)||{},x="original_size"===b?null==E||null==(a=E.css)?void 0:a.img:S;var F;return w&&M&&R?n.createElement("img",i()({fetchpriority:_?"high":void 0,loading:!1===_?"lazy":void 0,sizes:y+"px",srcSet:I?null==L?void 0:L.srcset:null==E?void 0:E.srcset,id:r,src:w,alt:o||"",role:c,style:{...u,...I?{...null==L||null==(F=L.css)?void 0:F.img}:{...x}},onLoad:m,onError:g,className:s(l,st),width:y,height:A},T)):w&&O&&R?n.createElement("picture",null,O.map((e=>{let{srcset:t,media:i,sizes:a}=e;return n.createElement("source",{key:i,srcSet:t,media:i,sizes:a})})),n.createElement("img",i()({fetchpriority:_?"high":void 0,loading:!1===_?"lazy":void 0,id:r,src:O[0].fallbackSrc,alt:o||"",role:c,style:{...u,objectFit:O[0].imgStyle.objectFit,objectPosition:O[0].imgStyle.objectPosition},onLoad:m,onError:g,className:s(l,st),width:y,height:A},T))):n.createElement(ot,e)};const lt=13,ut=27;function ht(e){return t=>{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}const dt=ht(32),mt=ht(lt),gt=e=>{mt(e),dt(e)},pt=(ht(ut),{root:"linkElement"}),ft=(e,t)=>{const{href:a,role:r,target:o,rel:s,className:c="",children:l,linkPopupId:h,anchorDataId:d,anchorCompId:m,tabIndex:g,dataTestId:p=pt.root,title:f,onClick:_,onDoubleClick:T,onMouseEnter:I,onMouseLeave:E,onFocus:L,onFocusCapture:b,onBlurCapture:y,"aria-live":A,"aria-disabled":w,"aria-label":M,"aria-labelledby":O,"aria-pressed":R,"aria-expanded":G,"aria-describedby":C,"aria-haspopup":S,"aria-current":x,dataPreview:F,dataPart:k}=e,v=void 0!==e.activateByKey?e.activateByKey:(e=>e?"SpaceOrEnter":"Space")(h);let N;switch(v){case"Enter":N=mt;break;case"Space":N=dt;break;case"SpaceOrEnter":N=gt;break;default:N=void 0}return void 0!==a||h?n.createElement("a",i()({},u(e),{"data-testid":p,"data-popupid":h,"data-anchor":d,"data-anchor-comp-id":m,"data-preview":F,"data-part":k,href:a||void 0,target:o,role:h?"button":r,rel:s,className:c,onKeyDown:N,"aria-live":A,"aria-disabled":w,"aria-label":M,"aria-labelledby":O,"aria-pressed":R,"aria-expanded":G,"aria-haspopup":S,"aria-describedby":C,"aria-current":x,title:f,onClick:_,onMouseEnter:I,onMouseLeave:E,onDoubleClick:T,onFocus:L,onFocusCapture:b,onBlurCapture:y,ref:t,tabIndex:h?0:g}),l):n.createElement("div",i()({},u(e),{"data-testid":p,"data-preview":F,"data-part":k,className:c,tabIndex:g,"aria-label":M,"aria-labelledby":O,"aria-haspopup":S,"aria-disabled":w,"aria-expanded":G,title:f,role:r,onClick:_,onDoubleClick:T,onMouseEnter:I,onMouseLeave:E,ref:t}),l)};var _t=n.forwardRef(ft);const Tt="gallery-item-item",It="gallery-item-panel",Et="gallery-item-title",Lt="gallery-item-description",bt="gallery-item-click-action-link",yt="gallery-item-click-action-image-zoom",At="gallery-item-describedby-id",wt="gallery-item-click-action-disabled";var Mt=e=>{const{imageOnClickAction:t,openImageZoom:a,focusItemRoot:r,focusDisabledItems:o=!1,imgTitle:c,imgAlt:l,link:u,children:h,skinsStyle:d,itemId:m,translations:g,onFocus:p=()=>{},onBlur:f=()=>{}}=e,_="describedby_"+m,T=()=>{r&&r(),a()};switch(t){case"zoomMode":return n.createElement("div",{className:s(d.itemClickWrapper,d.imageZoomBtn),"data-testid":yt,role:"button","aria-haspopup":"true",tabIndex:0,"aria-label":l||c||void 0,"aria-describedby":_,onClick:T,onKeyDown:gt,onFocus:p,onBlur:f},h,n.createElement("div",{style:{display:"none"}},n.createElement("span",{id:_,"data-testid":At},g.imageZoomDescribedByLabel)));case"goToLink":if(!(I=u)||0===Object.keys(I).length&&I.constructor===Object)break;return n.createElement(_t,i()({className:s(d.itemClickWrapper,d.imageLink),dataTestId:bt},o?{tabIndex:0}:{},u),h)}var I;return n.createElement("div",i()({className:d.itemClickWrapper,role:"img","data-testid":wt},o?{tabIndex:0}:{}),h)},Ot=a(93213),Rt=a.n(Ot),Gt=a(96114),Ct=a.n(Gt);const St="gallery-image-sizer";var xt=()=>{if("undefined"!=typeof window&&window.customElements&&!window.customElements.get(St)){class e extends HTMLElement{constructor(){super(),Rt()(this,"sizeObserver",void 0),this.sizeObserver=new ResizeObserver((e=>this.onResize(e)))}disconnectedCallback(){this.sizeObserver.disconnect()}connectedCallback(){this.sizeObserver.observe(this)}onResize(e){const t=e[0].contentRect.width,i=e[0].contentRect.height;this.resizeImage(t,i)}resizeImage(e,t){const i=this.children[0];if(i){const a=((e,t,i,a)=>{const r=i/a,n=Math.round(t*r);return n<=e?{width:n,height:t}:{width:e,height:Math.round(e/r)}})(e,t,parseInt(this.dataset.imageWidth,10),parseInt(this.dataset.imageHeight,10));Ct().mutate((()=>{var e;this.style.visibility="inherit",i.style.width=a.width+"px",i.style.height=a.height+"px",/^((?!chrome|android).)*safari/i.test(navigator?.userAgent)&&((e=i).style.setProperty("transform","translateZ(0)"),requestAnimationFrame((()=>{e.style.removeProperty("transform")})))}))}}}window.customElements.define(St,e)}},Ft="OH99EZ";xt();var kt=e=>{const{className:t,isFitMode:i,imageWidth:a,imageHeight:r,children:o}=e;return i?n.createElement("gallery-image-sizer",{class:s(t,Ft),"data-image-width":a,"data-image-height":r},o):n.createElement("div",{className:t},o)};var vt=e=>{const{title:t,description:i,skinsStyle:a}=e;return n.createElement("div",{"data-testid":It,className:a.panel},n.createElement("div",{className:a.panelWrap},!!t&&n.createElement("div",{"data-testid":Et,className:a.title},t),!!i&&n.createElement("p",{"data-testid":Lt,className:a.description},i)))};var Nt=e=>{const{dataId:t,title:a,description:r,link:o,image:c,itemId:l,skinsStyle:u,extraClassNames:h,imageOnClickAction:d,openImageZoom:m=()=>{},itemClickHandler:g=()=>{},translations:p,isFocused:f,isFitMode:_}=e,T=n.useCallback((()=>m(t)),[t,m]);let I;return n.createElement("div",{className:s(u.root,h.root,{[u.fitMode]:_}),"data-testid":Tt,onClick:g,tabIndex:-1,ref:e=>{I=e,(e=>{f&&e&&e.focus()})(e)}},n.createElement(Mt,{imageOnClickAction:d,openImageZoom:T,focusItemRoot:()=>{I&&I.focus()},link:o,imgTitle:c.title||"",imgAlt:c.alt,itemId:l,skinsStyle:u,translations:p,focusDisabledItems:!0},n.createElement(kt,{className:u.imageSizer,isFitMode:_,imageWidth:c.width,imageHeight:c.height},n.createElement("div",{className:u.imageWrapper},n.createElement("div",{className:u.imageBorder},n.createElement(ct,i()({className:u.image,id:"img_"+c.containerId},c,{alt:c.alt||c.title})),n.createElement(vt,{skinsStyle:u,title:a,description:r}))))))},Pt={root:"nTLhzS",itemsContainer:"QF4b9S",item:"R7VW51","columns-1":"u8VmVJ",columns1:"u8VmVJ","columns-2":"u2iKeA",columns2:"u2iKeA","columns-3":"UJRWID",columns3:"UJRWID","columns-4":"gN7JUw",columns4:"gN7JUw","columns-5":"ZZ4sMf",columns5:"ZZ4sMf","columns-6":"MRG8Gr",columns6:"MRG8Gr","columns-7":"qDLjzM",columns7:"qDLjzM","columns-8":"p3ApLq",columns8:"p3ApLq","columns-9":"mWGRZu",columns9:"mWGRZu","columns-10":"DssDh2",columns10:"DssDh2",showMoreContainer:"UKym0D",showMore:"Gfv_MA"};const Ht=e=>e.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`));var Bt;const Yt={MatrixGallery_MatrixGalleryDefaultSkin:{component:e=>n.createElement(p,i()({},e,{skinsStyle:Pt,skinsItemStyle:f,MatrixGalleryItemComponent:Nt})),controller:(Bt=e=>{let{mapperProps:t,controllerUtils:i}=e;return{...t,setItemToFocusIndex:e=>{i.updateProps({itemToFocusIndex:e})},setNumberOfExtraRows:e=>{i.updateProps({numberOfExtraRows:e})}}},{useComponentProps:(e,t,i)=>{const a=(e=>({...e,updateStyles:t=>{const i=Object.entries(t).reduce(((e,[t,i])=>{return{...e,[(a=t,a.startsWith("--")?t:Ht(t))]:void 0===i?null:i};var a}),{});e.updateStyles(i)}}))(i);return Bt({mapperProps:e,stateValues:t,controllerUtils:a})}})}}}(),r}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[MatrixGallery_MatrixGalleryDefaultSkin].8d04e9b5.bundle.min.js.map